import request from '@/utils/request'

// 查询机构列表
export function listContractOwn(query) {
  return request({
    url: '/customer/contract/list',
    method: 'get',
    params: query
  })
}


// 查询机构列表
export function contractDetail(id) {
  return request({
    url: `/customer/contract/${id}`,
    method: 'get'
  })
}


// 维保合同签章
export function contractSignature(data) {
  return request({
    url: `/customer/contract/signature`,
    method: 'post',
    data
  })
}
// 合同签章发送验证码
export function ownSendMsgCode(contractId) {
  return request({
    url: `/customer/contract/sign/sendMsgCode/${contractId}`,
    method: 'get'
  })
}

// 验证验证码
export function ownValidateCode(data) {
  return request({
    url: `/customer/contract/sign/validateCode`,
    method: 'post',
    data
  })
}